<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Guardian extends CI_Controller {


	

	public function index()
	{
		if($this->session->userdata('account_id') != null){
			if($this->input->get('id',TRUE)){
				$id=$this->input->get('id',TRUE);		
			}else{
				$id=-1;
			}
			$arrayData = (object) array(
					'guardian_id'=>$id
				);
			$this->load->view('guardian_view',$arrayData);
		}else{
			redirect(base_url().'login');
		}
		
		
		
	}
}
